(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define(["require", "exports", "json!websiteConfig"], factory);
    }
})(function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    const json_websiteConfig_1 = require("json!websiteConfig");
    function loadControlCSS(name) {
        requirejs({ context: json_websiteConfig_1.contextName }, [`less!admin/controls/${name}`]);
    }
    exports.loadControlCSS = loadControlCSS;
    function createDialogElement(className) {
        let element = document.createElement('div');
        element.className = 'modal fade ' + className;
        // element.style.zIndex = '1000';
        document.body.appendChild(element);
        return element;
    }
    exports.createDialogElement = createDialogElement;
});
